// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import { Col, Form, FormItem, Input, Button, Menu, Tabs, TabPane, select, MenuItem, Dialog, Table, TableColumn, Pagination, Loading, Row, Card, MessageBox } from 'element-ui'
import '../static/sass/common.sass'
import '../static/style.css'
import axios from 'axios'

axios.defaults.baseURL = '//m.kefid.org/v1'
Vue.use(Form).use(Pagination).use(Loading).use(Row).use(Col).use(Tabs).use(TabPane).use(select)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Button)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Dialog)
Vue.use(Card)

Vue.prototype.$msgbox = MessageBox
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
// Vue.component(CollapseTransition.name, CollapseTransition)

// Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
